import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
// import 'package:flutter_application_2/test.dart';
// // import './IconContainer.dart';
// // import './ImageItem.dart';
// import './CardItem.dart';
// import './ButtonItem.dart';
import './router/index.dart';

main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // Map<String, WidgetBuilder> routes = routes;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      // home: Tabs(),
      routes: routes,
      initialRoute: '/',
      debugShowCheckedModeBanner: false,
      localizationsDelegates: [
        //此处
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
      ],
      locale: Locale('zh'),
      supportedLocales: [
        //此处
        const Locale('zh', 'CH'),
        const Locale('en', 'US'),
      ],

      // ignore: missing_return
    );
  }
}
